﻿using System.ComponentModel;

namespace Collab.Modules.ContactBrowser.Model
{
    public class UserCredentials : IDataErrorInfo
    {

        #region State Properties

        /// <summary>
        /// Gets or sets the username.
        /// </summary>
        /// <value>The username.</value>
        public string Username { get; set; }

        /// <summary>
        /// Gets or sets the password.
        /// </summary>
        /// <value>The password.</value>
        public string Password { get; set; }

        #endregion

        #region IDataErrorInfo Members

        string IDataErrorInfo.Error
        {
            get { return null; }
        }

        string IDataErrorInfo.this[string propertyName]
        {
            get { return this.GetValidationError(propertyName); }
        }

        #endregion

        #region Validation
        string GetValidationError(string propertyName)
        {
            return "Validation text not implemeted yet.";
        }
        #endregion

    }
}
